jQuery.modaloading=function(fn,time){
	var $document = $(document.body);		
	var html='<div id="dop_load_Modal" class="modal fade in" id="ajax" tabindex="-1" role="basic" aria-hidden="false" style="display:block">'
                        +'<img src="assets/img/ajax-modal-loading.gif" alt="" class="loading">'
                        +'<span class="loading" style="padding-left:50px;color:#fff">正在努力加载中。。。</span> '                       
			  +'</div>';

	
	var createLoad=function(){
		var dop_load_Modal=$('#dop_load_Modal');		
		if(dop_load_Modal.size()>0){dop_load_Modal.remove()}
		$document.append(html);
		if(time){
			setTimeout(jQuery.modaloading.close,time);
		}
	};
	jQuery.modaloading.close=function(fn){		
		var dop_load_Modal=$('#dop_load_Modal');
		dop_load_Modal.remove();
		fn.call(this);
	};
	createLoad();
	
};

